{include file="$AdminFullPath/skins/$DefaultSkin/header.tpl"}

<table width="100%">
  <tr>
    <td class="module_title" nowrap>
      <a href="index.php">{$SiteTitle}</a> &raquo; <a href="index.php?mod={$mod}">{$OrbitFAQTitle}</a> &raquo; Create New Category
    </td>
  </tr>
</table>
<br />

<table cellspacing="1" class="index_body">

  {if $Errors != ''}
  <tr>
    <td colspan="2">
      <table width="100%" class="message_tbl">
        <tr>
          <td style="vertical-align: bottom;" width="20">
            <img src="skins/{$DefaultSkin}/images/error.png">
          </td>
          <td class="message" nowrap>
            <b>We found some errors with your posting. Please solve the following:<br /></b>
            {$Errors}
          </td>
        </tr>
      </table>
    </td>
  </tr>
  {/if}

  <tr>
    <td>
      <form ACTION="index.php?mod={$mod}&action=create&posted=yes" METHOD="post" NAME="FORM_CREATE_QN" ID='FORM_CREATE_QN'>
      <table style="width:100%;">

        <tr>
          <td class="details" width="30" valign="top" nowrap>
            Select Category:
          </td>
          <td>
            <select class="post postbig" name="posted_cat" />
              <option value=''>- Select A Category -</option>
              {$CATPulldown}
            </select><br /><br />
          </td>
        </tr>

        <tr>
          <td class="details" width="30" valign="top">
            Question:
          </td>
          <td>
            <script type="text/javascript">
            <!--

            var oFCKeditor = new FCKeditor( 'posted_desc' ) ;
            oFCKeditor.BasePath = '../incs/fckeditor/' ;
            oFCKeditor.Height = 270 ;
            oFCKeditor.Value  = '{$posted_desc}' ;
            oFCKeditor.Create() ;
            //-->
            </script>
          </td>
        </tr>

        <tr>
          <td class="details" width="30" valign="top">
            Associate With An Existing Answer:<br />
          </td>
          <td>
            <input type="text" class="post postsmall" id="posted_associated_answer" name="posted_associated_answer" value="{$posted_associated_answer}" MAXLENGTH='120' READONLY/>
            <a href="#" onclick="openwin('index.php?mod={$mod}&action=assocanswer',600,480); hidediv('answer_title');  hidediv('answer_form');">SELECT ANSWER</a> <a href="#" onclick="clearText(); showdiv('answer_title');  showdiv('answer_form');">RESET</a>
          </td>
        </tr>


        <tr>
          <td class="details" width="30" valign="top">
            <div id="answer_title" name="answer_title" {if $posted_associated_answer != ''}style="visibility: hidden"{/if}>
            Answer:
            </div>
          </td>
          <td>
            <div id="answer_form" name="answer_form" {if $posted_associated_answer != ''}style="visibility: hidden"{/if}>
            <script type="text/javascript">
            <!--

            var oFCKeditor = new FCKeditor( 'posted_ans' ) ;
            oFCKeditor.BasePath = '../incs/fckeditor/' ;
            oFCKeditor.Height = 270 ;
            oFCKeditor.Value  = '{$posted_ans}' ;

            oFCKeditor.Config[ "ImageUpload" ] = false ;

            oFCKeditor.Create() ;
            //-->
            </script>
          </td>
        </tr>

        <tr>
          <td colspan="3" align="center"><br /><br />
            <input class="button" type="submit" value="Submit" />
          </td>
        </tr>

      </table>
      </form>

    </td>
  </tr>

</table>

{include file="$AdminFullPath/skins/$DefaultSkin/footer.tpl"}